package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtStockChangeDetail;
import com.ymttest.database.model.YmtSyncStockLog;

public class YmtSyncStockLogWapper {
	SqlManager manage;

	public YmtSyncStockLogWapper() {
		manage = new SqlManager("logging");
	}
	
	public YmtSyncStockLog selectBySyncStockId(String syncStockId)throws InterruptedException{
		  @SuppressWarnings("unchecked")
		List<YmtSyncStockLog>  YmtSyncStockLogList = manage.getSelectResults(
		            "com.ymttest.database.mapping.YmtSyncStockLogMapper.selectBySyncStockId", syncStockId);
		    manage.commit();
		    return YmtSyncStockLogList.get(0);
	}
	public static void main(String[] args) throws InterruptedException {
		System.out.println(new YmtSyncStockLogWapper().selectBySyncStockId("232f8da09ba8480fb5ab765f8cd5ccd2").getsSKU());
	}
}
